package com.example.travelservlet.like.dao;

import com.example.travelservlet.entity.Like;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author hxy
 * @date 2023/5/9 11:11
 */

@Mapper
@Repository
public interface LikeMapper {

    Integer insertLike(Like like);

    Integer deleteLike(String userId,String id);


    List<Like> findLikeByUserIdAndType(Map<String,Object> map);
}
